@echo off

@SET Path=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\ce\bin\x86_arm;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;C:\program files\Microsoft Visual Studio 8\SmartDevices\SDK\SDKTools

@set INCLUDE=C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\Smartphone2003\Include;C:\program files\Microsoft Visual Studio 8\VC\ce\atlmfc\include;C:\Program Files\Microsoft Visual Studio 8\VC\ce\include

@set LIB=C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\Smartphone2003\Lib\armv4;C:\program files\Microsoft Visual Studio 8\VC\ce\atlmfc\lib\armv4;C:\program files\Microsoft Visual Studio 8\VC\ce\lib\armv4
@echo Environment configured...

@echo Building...
mkfiles.pl
nmake /f Makefile.wce > wce-build-log.txt

@echo Packaging...
wceinf.pl wingames.lst > puzzles.inf
cabwiz puzzles.inf /cpu ARMV4
ezsetup -l english -i puzzles.ini -r setup-readme.txt -e LICENCE -o setup.exe

@echo Done...
